package com.yyi.springcloud.service.impl;


import com.yyi.springcloud.dao.SystemInfoMapper;
import com.yyi.springcloud.entities.SystemInfoModel;
import com.yyi.springcloud.service.Local_SystemInfoService;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Local_SystemInfoServiceImpl implements Local_SystemInfoService {
    @Resource
    private SystemInfoMapper systemInfoMapper;

    public SystemInfoMapper getSystemInfoMapper() {
        return systemInfoMapper;
    }

    public void setSystemInfoMapper(SystemInfoMapper systemInfoMapper) {
        this.systemInfoMapper = systemInfoMapper;
    }


    @Override
    public List<SystemInfoModel> getSystemInfoByCondition(SystemInfoModel systemInfoModel) {
        Example example = new Example(SystemInfoModel.class);
//        example.orderBy("testunitno").asc();
        return systemInfoMapper.select(systemInfoModel);
    }
}
